package com.spzx.product.domain;

import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName ProductUnit
 * @Author 波
 * @Date 2024/7/28 14:40
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "商品单位实体类")
public class ProductUnit extends BaseEntity {
    @Schema(description = "商品单位名称")
    @NotBlank(message = "商品名称不能为空")
    @Size(min = 0, max = 10, message = "商品单位名称长度不能超过10个字符")
    private String name;
}
